package lucky.xiong.basic;

/**
 * @author XiongJl
 * @date 2020/12/2 14:01
 */
public class 浮点数 {
    public static void main(String[] args) {

        float a = 0f;
        float b= 0.0f;


        System.out.println(a!=b? 1:2);



        double myNumber = 2.0884738048E10;

        double v = myNumber / 1024 / 1024 / 1024;
        System.out.println(v);

        String str = "2.0884738048E10";
        double mem = Double.parseDouble(str);

        System.out.println(mem / 1024 / 1024 / 1024);


        double used = 0.3457261523417313;

        double available = (mem / 1024 / 1024 / 1024) * (1 - used);
        System.out.println(1 - used);
        System.out.println(available);


    }
}
